/*
 * Created: 2022-09-11 23:00:51
 * Author : 涛涛涛
 */

import React, { FC } from 'react';
import { View, Text, Image } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
export interface IProps extends ICompProps {}
FixedBanner.defaultProps = {} as Partial<IProps>;
function FixedBanner(props: IProps) {
    const { className, style } = props;
    const localClassName = useClassName('FixedBanner', className);
    return (
        <RootView className={localClassName} style={style}>
            <View className="text-wrap">
                <View className="text">发现和收集更多</View>
                <View className="text">有收藏价值的</View>
                <View className="text">NFT</View>
            </View>
            <View className="img-wrap">
                <Image className="img" src={require('@/static/images/home-banner.png')} mode="scaleToFill" />
            </View>
        </RootView>
    );
}
export default React.memo(FixedBanner as FC<IProps>);
const RootView = styled(View)`
    &.FixedBanner {
        padding: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .text-wrap {
            .text {
                font-size: 48px;
                color: #333;
            }
        }
        .img-wrap {
            margin-right: -40px;
            margin-top: -30px;
            margin-bottom: -30px;
            .img {
                display: block;
                width: 320px;
                height: 320px;
            }
        }
    }
`;
